import { RectNode, RectNodeModel } from "@logicflow/core";

class UserTaskModel extends RectNodeModel {
  getNodeStyle() {
    const style = super.getNodeStyle();
    if (this.properties.customError) {
      style.stroke = "#E34D59";
    }

    return style;
  }
}

export default {
  type: "bpmn:userTask",
  view: RectNode,
  model: UserTaskModel,
};
